<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
    <%
        pageContext.setAttribute("APP_PATH", request.getContextPath());
    %>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <script type="text/javascript" src="${APP_PATH }/static/js/jquery-1.12.4.min.js"></script>
    <link type="text/css" rel="stylesheet" media="all" href="${APP_PATH}/styles/global.css" />
    <link type="text/css" rel="stylesheet" media="all" href="${APP_PATH}/styles/global_color.css" />
   
<title>Insert title here</title>
</head>
<body class="index">
        <!--导航区域开始-->
        <div id="index_navi">
            <ul id="menu">
                <li><a href="${APP_PATH }/view/index.jsp" class="index_on" ></a></li>
                <li><a href="${APP_PATH }/view/role_list.jsp" value="1" class="role_off"></a></li>
                <li><a href="${APP_PATH }/view/admin_list.jsp" value="2" class="admin_off"></a></li>
                <li><a href="${APP_PATH }/view/fee_list.jsp" value="3" class="fee_off"></a></li>
                <li><a href="${APP_PATH }/view/account_list.jsp" value="4" class="account_off"></a></li>
                <li><a href="${APP_PATH }/view/service_list.jsp" value="5" class="service_off"></a></li>
                <li><a href="${APP_PATH }/view/bill_list.jsp" value="6" class="bill_off"></a></li>
                <li><a href="${APP_PATH }/view/report_list.jsp" value="7" class="report_off"></a></li>
                <li><a href="${APP_PATH }/view/user_info.jsp" value="0" class="information_off"></a></li>
                <li><a href="${APP_PATH }/view/user_modi_pwd.jsp" value="0" class="password_off"></a></li>
            </ul>
        </div>
</body>
<script type="text/javascript">
    $('a').click(function () {
        var roles = "${roles}"+"0";
        value = $(this).attr("value");
        if(roles.indexOf(value) == -1){
            $(this).attr('href','${APP_PATH }/view/nopower.jsp');
        }
    })
    
</script>
</html>